<?
    class instance
    {
        /*
        * load site config
        * init modules and helpers
        */
        public static function init()
        {
            // load instance configuration
            include_once ('conf/configuration.php');

            // connect to db
            include_once ('db.php');
            $db_connected = db::connect(configuration::$db);

            // *** routing section ***
            include_once ('url.php');
            url::get();

            include_once ('router.php');
            // *** /routing section ***


            /*
             * create instance:
             *  1. load config+
             *  2. connect to database+
             *  3. routing+-
             *  4. filter input
             *  5. [parsing]
             *  5. get data
             *  6. formating data
             *  7. Error control
             *  8. View
             */
        }
    }